package Day03;

import java.util.Scanner;

public class PlusHomeWork {
    public static void main(String[] args) {
        int a=50,b=100;
        int c=a>b ? a:b;
        System.out.println(c);
        boolean d=a>b;
        if (d){
            System.out.println(a);
        }else{
            System.out.println(b);
        }
        int year=1000;
        if (year%4==0 && year%100!=0 || year%400==0){
            System.out.println(year+"是润正年");
        }else{
            System.out.println(year+"是平年");
        }

        for (;;){
            Scanner n1=new Scanner(System.in);
        int score=n1.nextInt();
        if (score>=0 &&score<=100){
            if (score>=90){
                System.out.println("成绩优秀");
            }
            else if(score>=80){
                System.out.println("成绩优良");
            }
            else if(score>=60){
                System.out.println("成绩合格");
            }
            else{
                System.out.println("成绩不合格");
            }
        }else{
            System.out.println("成绩不合法");
        }
    }




    }
}
